from matplotlib import pyplot as plt
import numpy as np

# x1 = np.linspace(1, 10, 20)
# print(x1)
# y1 = x1 * x1 + 2
# fig = plt.figure()
# axes = fig.add_axes([0.1, 0.1, 0.9, 0.9])
# axes.plot(x1, y1, 'r')

x1 = list(range(5))
y1 = list(map(lambda x: x*2, x1))
x2 = list(range(5))
y2 = list(map(lambda x: x**2, x2))

# plt.plot(y1, y2)
plt.plot(x1, y1, x1, y2)


# N = 50
# x = np.random.rand(N)
# y = np.random.rand(N)
# colors = np.random.rand(N)
# area = np.pi    # * (15 * np.random.rand(N)) ** 2
#
# plt.scatter(5 * x, 5 * y, s=area, c=y, alpha=0.3)


plt.show()



# plt.savefig("filename.png")
